<?php

/**
 * @package		Joomla
 * @subpackage	wbfirst
 * @copyright	2008 Wim Bekker, www.wimbekker.com.
 * @license		GNU/GPL
*/
 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.model' );
 
// classname'Model'modelname
class WbfirstsModelWbfirsts extends JModel
{
  /**
  * Wbfirsts data
  * @var array
  */
  var $_data = null;
  
  
  /**
  * Returns the query
  * @return string The query to be used to retrieve the rows from the database
  */
  function _buildQuery()
  {
    $query = ' SELECT * '
           . ' FROM #__wbfirst '
    ;
    return $query;
  }


  /**
  * Loads the query result in _data
  * @return array Array of db objects
  */
  function getData()
  {
    //if (empty($this->_data))
    {
      $sql = $this->_buildQuery();
      $this->_data = $this->_getList($sql);
    }
    return $this->_data;
  }
}
?>
